<?php

use yii\helpers\Html;
use yii\grid\GridView;
use yii\widgets\ListView;
use frontend\components\HotWordsWidget;
use frontend\components\RctCreditdetailWidget;
use frontend\components\RctDocWidget;
use frontend\components\HotDocWidget;
/* @var $this yii\web\View */
/* @var $searchModel common\models\UserSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
?>
<div class="container" >
  <div class="row">
    <ol class="breadcrumb">
		<li><a href="<?= Yii::$app->homeUrl;?>">首页</a></li>
		<li>用户管理</li>
	</ol>


    <p>
        <?= Html::a('添加管理员', ['create'], ['class' => 'btn btn-success']) ?>
    </p>

    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'filterModel' => $searchModel,
        'columns' => [
            ['class' => 'yii\grid\SerialColumn'],

            'uid',
            'username',
            // 'password_hash',
            'email:email',
            'credit',
            'groupid',
            'createnum',
            'editnum',

            ['class' => 'yii\grid\ActionColumn'],
        ],
    ]); ?>


  </div>
</div>
